<?php

namespace haibao\cms\business\activity;

use haibao\cms\business\BusinessException;

class SpiderBusiness extends \haibao\cms\business\Base{

    public static function getSpiderImageCntFromTmall(){

        $data = new \haibao\cms\data\activity\SpiderData();
        return $data->getSpiderImageCntFromTmall();

    }

    public static function delSpiderImage($id){

        $data = new \haibao\cms\data\activity\SpiderData();
        return $data->delSpiderImage($id);
    }

    public static function confirmSpiderImage($ids, $secordCategory){

        $data = new \haibao\cms\data\activity\SpiderData();
        return $data->confirmSpiderImage($ids, $secordCategory);
    }

    public static function getTmallCategory(){
        return array(
            '1' => '衬衫 男',
            '2' => '衬衫 女',
            '3' => 'T恤 男',
            '4' => 'T恤 女',
            '5' => '西服外套 男',
            '6' => '西服外套 女',
            '7' => '夹克衫 男',
            '8' => '夹克衫 女',
            '9' => '卫衣 男',
            '10' => '卫衣 女',
            '11' => '连衣 长裙',
            '12' => '半身 长裙',
            '13' => '连衣 短裙',
            '14' => '半身 短裙',
            '15' => '休闲裤 男',
            '16' => '休闲裤 女',
            '17' => '西裤 男',
            '18' => '西裤 女',
            '19' => '牛仔裤 男',
            '20' => '牛仔裤 女',
        );
//        return array(
//            '50025783' => '针织衫',
//            '50025265' => '衬衫',
//            '50029627' => 'T恤',
//            '50103033' => '蕾丝衫／雪纺衫',
//            '50103043' => '卫衣／绒衫',
//            '50025263' => '西装',     //50102772
//            '50103035' => '毛衣',
//            '50103039' => '皮衣',
//            '50025145' => '连衣裙',
//            '54570004' => '牛仔',
//            '52040006' => '大衣／棉服',  // 54652002 50047357
//        );
//        return array(
//            "50025783"=>"针织衫",
//            "50025265"=>"衬衫",
//            "50029627"=>"T恤",
//            "50103033"=>"蕾丝衫/雪纺衫",
//            "50103043"=>"卫衣/绒衫",
//            "50025263"=>"小西装",
//            "50103035"=>"毛衣",
//            "50103039"=>"皮衣",
//            "50103040"=>"皮草",
//            "50103046"=>"羽绒服",
//            "50103020"=>"风衣",
//            "50103022"=>"礼服/晚装/旗袍",
//            "50025145"=>"连衣裙",
//            "50025227"=>"牛仔裤",
//            "54570004"=>"牛仔外套",
//            "50102772"=>"职业套装",
//            "52040006"=>"毛呢外套/呢大衣",
//            "50025258"=>"半身裙",
//            "50025152"=>"吊带/背心",
//            "54652002"=>"羊毛大衣",
//            "50047357"=>"棉衣棉服",
//            "51596005"=>"婚纱",
//            "52772010"=>"正装裤",
//            "50334017"=>"夹克",
//            "50350024"=>"背心/马甲",
//            "50344016"=>"风衣",
//            "50354019"=>"Polo衫",
//            "50354020"=>"皮衣",
//        );
    }

    public static function getSecondCategory(){
        return array(
            '1' => '普通领',
            '2' => '圆领',
            '3' => '一字领',
            '4' => '立领',
            '5' => 'V领',
            '6' => '无袖',
            '7' => '短袖',
            '8' => '长袖',
        );
    }

    public static function getFinishPictureCount($type, $secordCategory){
        $data = new \haibao\cms\data\activity\SpiderData();
        return $data->getFinishPictureCount($type, $secordCategory);
    }
    
}